package cn.openea.perpartner.meily.web.service;

import cn.openea.perpartner.meily.web.entity.*;
import cn.openea.perpartner.meily.web.entity.dto.AttrSpecDto;

import java.util.List;

/**
 * @author Weird077
 * @description TODO
 * @date 2023-04-17 16:12
 */
public interface IShopProductService {
    List<ShopBaseProductType> productTypeData();

    ShopProductSpec specCreate(ShopProductSpec spec);

    int specDelete(Long id);

    ShopProductSpecValue specValueCreate(ShopProductSpecValue specValue);

    int specValueDelete(Long id);
    AttrSpecDto baseAttrSpecData(String productTypeId);
    AttrSpecDto productAttrSpecData(String productTypeId, String productId);
    AttrSpecDto attrSpecData(String productTypeId, String productId);

    ShopBaseProductType productTypeCreate(ShopBaseProductType productType);

    ShopBaseProductTypeAttribute productTypeValueCreate(ShopBaseProductTypeAttribute productTypeAttribute);

    int productTypeDelete(Long id);

    int productTypeValueDelete(Long id);

    ShopBaseSpec baseSpecCreate(ShopBaseSpec spec);

    int baseSpecDelete(Long id);

    ShopBaseSpecValue baseSpecValueCreate(ShopBaseSpecValue specValue);

    int baseSpecValueDelete(Long id);

    int productAttrCreate(List<ShopProductAttribute> productAttributeList);
}
